/**
 * Copyright (c) 2016-2020 https://github.com/zhaohuatai
 *
 * contact 824069438@qq.com
 *  
 */
package zfes.snowier.projects.sample.biz.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.core.data.Record;

import zfes.snowier.projects.sample.biz.model.Sample;
@Mapper
public interface SampleMapper extends BaseMapper<Sample>{
	
	String selectOrgTreeCodeById(@Param("id")Long id);
	
	String selectCodeById(@Param("id")Long id);
	
	Sample selectByCode(@Param("code")String code);
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte enabled);
	
	List<Record> selectList(ParamMap paramMap);
	
	Long selectListCount(ParamMap paramMap);
}
